package com.zhonghui.common.eshopMapper;

import com.zhonghui.common.eshopVo.StoreProductQueryVo;
import com.zhonghui.modlules.product.eshopDomain.StoreSeckill;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Repository
public interface StoreSeckillMapper extends CoreMapper<StoreSeckill>  {
    @Select({"SELECT c.id,c.image,c.price,c.title as storeName,c.is_show as isShow,c.cost,c.is_postage as isPostage,c.postage,c.sales,c.stock,c.is_del as isDel FROM store_seckill c  WHERE c.id = #{id} and c.is_del = 0 "})
    StoreProductQueryVo seckillInfo(Long id);
}
